import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { Repository, getConnection } from 'typeorm';

@Injectable()
export class HomeBottomDao {
 
    public connection = getConnection();
    constructor(
    ) { }

    /**
     * 查询灯杆详情
     */
    getLamppostDetail(params:any){
        let sql="select * from lamppost where id="+params.lamppost_id;
        return this.connection.query(sql);
    }

}